import request from '@/utils/request'

// 订单列表
export function orderWarehouseList(params) {
  return request({
    url: 'order/SysOrderWarehouseManagementController/orderWarehouseList',
    params,
  })
}
// 新增
export function addOrderWarehouseManagement(data) {
  return request({
    url: 'order/SysOrderWarehouseManagementController/addOrderWarehouseManagement',
    data,
    method: 'post',
  })
}
export function editOrderWarehouseManagement(data) {
  return request({
    url: 'order/SysOrderWarehouseManagementController/editOrderWarehouseManagement',
    data,
    method: 'post',
  })
}
export function deletedByIds(ids) {
  return request({
    url: `order/SysOrderWarehouseManagementController/deletedByIds/${ ids }`,
    method: 'delete',
  })
}
export function towingFeeDeatils(ladingNo) {
  return request({
    url: `finance/payable/towingFeeDeatils/${ ladingNo }`,
   
    method: 'post',
  })
}
// 预定仓位

export function resevePositionManageList(params) {
  return request({
    url: 'order/sysResevePositionManageController/resevePositionManageList',
    params,
  })
}
export function insertSysResevePositionManage(data) {
  return request({
    url: 'order/sysResevePositionManageController/insertSysResevePositionManage',
    data,
    method: 'post',
  })
}
export function updateSysResevePositionManage(data) {
  return request({
    url: 'order/sysResevePositionManageController/updateSysResevePositionManage',
    data,
    method: 'post',
  })
}
export function deletePositionManageById(id) {
  return request({
    url: `order/sysResevePositionManageController/deletePositionManageById/${ id }`,
    method: 'delete',
  })
}
export function resevePositionManageDeailsList(params) {
  return request({
    url: 'order/sysResevePositionManageController/resevePositionManageDeailsList',
    params,
  })
}
// 详情 - 删除
export function delOrderDetail(data) {
  const { manageId, id } = data
  return request({
    url: `order/sysResevePositionManageController/deleteManageDeails/${ manageId }/${ id }`,
    method: 'delete',
  })
}
export function getDetail(params) {
  return request({
    url: 'order/sysResevePositionManageController/selectSysResevePositionClientcustomerCode',
    params,
  })
}
export function getDetail4(params) {
  return request({
    url: 'order/sysResevePositionManageController/queryCustomerBookingDetails',
    params,
  })
}
export function deleteCustomerBookingSpace(data) {
  return request({
    url: 'order/sysResevePositionManageController/deleteCustomerBookingSpace',
    data,
    method: 'delete',
  })
}
export function deleteDetails(id) {
  return request({
    url: `order/sysResevePositionManageController/deleteDetails/${ id }`,
    method: 'delete',
  })
}
export function cancelReserve(data) {
  return request({
    url: 'order/sysResevePositionManageController/cancelReserve',
    data,
    method: 'post',
  })
}
export function updateManageDeails(data) {
  return request({
    url: 'order/sysResevePositionManageController/updateManageDeails',
    data,
    method: 'post',
  })
}
export function saveManageDeails(data) {
  return request({
    url: 'order/sysResevePositionManageController/saveManageDeails',
    data,
    method: 'post',
  })
}
